package thirdPartyUtils.excel;

import com.alibaba.excel.EasyExcel;

import java.io.File;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class EasyExcelRead {
    public static void main(String[] args) {
        File file = Paths.get("D:\\abc.xlsx").toFile();
        List<Map<Integer,String>> importList = EasyExcel.read(file)
                .head(new ArrayList<>())
                // 设置标题所在行数
                .headRowNumber(1)
                .doReadAllSync();
        System.out.println(importList);
    }
}

